
{[include file="material/in/purchase/_view.tpl"]}

{[if $supplier]}
{[include file="contact/supplier/_view.tpl"]}
{[/if]}

{[include file="material/in/record/_list_in.tpl"]}

<fieldset><legend>入库信息</legend>
<form id="form_add">
<input type="hidden" name="id" value="{[$smarty.request.id]}" />
<input type="hidden" name="supplier" value="{[$result.supplier]}" />
<table>
	<tr>
		<td width="20%" align="right">入库员：</td>
		<td width="30%"><input type="text" name="emp" id="emp" size="12" value="{[$smarty.session.id]}:{[$smarty.session.name]}" title="{[$t.emp_|emp:'入库员']}"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" checked> 自己</td>
		<td width="20%" align="right">入库日期：</td>
		<td width="30%"><input type="text" name="date" id="date" size="12" value="{[$smarty.now|date_format:'%Y-%m-%d']}"></td>
	</tr>
	<tr>
		<td align="right">送货单：</td>
		<td><input type="text" name="number" id="number" size="20" value=""></td>
		<td align="right">订购单：</td>
		<td><input type="text" name="purchase" id="purchase" size="12" value="{[$result.id]}" disabled></td>
	</tr>
	<tr>
		<td align="right">仓库：</td>
		<td colspan="3"><input type="text" name="place" id="place" size="12" value=""> <select name='place_t' id='place_t'>
			{[html_options options=$place_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" id="content" cols="55"></textarea></td>
	</tr>
</table>
</form>
</fieldset>

<link type="text/css" href="js/material/in/purchase/purchase.css?r={[$smarty.now]}" rel="stylesheet">
<script type="text/javascript" src="js/material/in/purchase/in.js?r={[$smarty.now]}"></script>
